<html><body>
<style>

body, h1, h2, h3, div, span, p, pre, a {
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: inherit;
  font-style: inherit;
  font-size: 100%;
  font-family: inherit;
  vertical-align: baseline;
}

body {
  font-size: 13px;
  padding: 1em;
}

h1 {
  font-size: 26px;
  margin-bottom: 1em;
}

h2 {
  font-size: 24px;
  margin-bottom: 1em;
}

h3 {
  font-size: 20px;
  margin-bottom: 1em;
  margin-top: 1em;
}

pre, code {
  line-height: 1.5;
  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}

pre {
  margin-top: 0.5em;
}

h1, h2, h3, p {
  font-family: Arial, sans serif;
}

h1, h2, h3 {
  border-bottom: solid #CCC 1px;
}

.toc_element {
  margin-top: 0.5em;
}

.firstline {
  margin-left: 2 em;
}

.method  {
  margin-top: 1em;
  border: solid 1px #CCC;
  padding: 1em;
  background: #EEE;
}

.details {
  font-weight: bold;
  font-size: 14px;
}

</style>

<h1><a href="backupdr_v1.html">Backup and DR Service API</a> . <a href="backupdr_v1.projects.html">projects</a> . <a href="backupdr_v1.projects.locations.html">locations</a> . <a href="backupdr_v1.projects.locations.backupVaults.html">backupVaults</a> . <a href="backupdr_v1.projects.locations.backupVaults.dataSources.html">dataSources</a> . <a href="backupdr_v1.projects.locations.backupVaults.dataSources.backups.html">backups</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
  <code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
  <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Deletes a Backup.</p>
<p class="toc_element">
  <code><a href="#fetchForResourceType">fetchForResourceType(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, resourceType=None, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Fetch Backups for a given resource type.</p>
<p class="toc_element">
  <code><a href="#fetchForResourceType_next">fetchForResourceType_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#get">get(name, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Gets details of a Backup.</p>
<p class="toc_element">
  <code><a href="#list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists Backups in a given project and location.</p>
<p class="toc_element">
  <code><a href="#list_next">list_next()</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
  <code><a href="#patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the settings of a Backup.</p>
<p class="toc_element">
  <code><a href="#restore">restore(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Restore from a Backup</p>
<h3>Method Details</h3>
<div class="method">
    <code class="details" id="close">close()</code>
  <pre>Close httplib2 connections.</pre>
</div>

<div class="method">
    <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
  <pre>Deletes a Backup.

Args:
  name: string, Required. Name of the resource. (required)
  requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
      },
    ],
    &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  },
  &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
  &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="fetchForResourceType">fetchForResourceType(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, resourceType=None, view=None, x__xgafv=None)</code>
  <pre>Fetch Backups for a given resource type.

Args:
  parent: string, Required. Datasources are the parent resource for the backups. Format: projects/{project}/locations/{location}/backupVaults/{backupVaultId}/dataSources/{datasourceId} (required)
  filter: string, Optional. A filter expression that filters the results fetched in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. Supported fields:
  orderBy: string, Optional. A comma-separated list of fields to order by, sorted in ascending order. Use &quot;desc&quot; after a field name for descending.
  pageSize: integer, Optional. The maximum number of Backups to return. The service may return fewer than this value. If unspecified, at most 50 Backups will be returned. The maximum value is 100; values above 100 will be coerced to 100.
  pageToken: string, Optional. A page token, received from a previous call of `FetchBackupsForResourceType`. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `FetchBackupsForResourceType` must match the call that provided the page token.
  resourceType: string, Required. The type of the GCP resource. Ex: sqladmin.googleapis.com/Instance
  view: string, Optional. This parameter is used to specify the view of the backup. If not specified, the default view is BASIC.
    Allowed values
      BACKUP_VIEW_UNSPECIFIED - If the value is not set, the default &#x27;FULL&#x27; view is used.
      BACKUP_VIEW_BASIC - Includes basic data about the Backup, but not the full contents.
      BACKUP_VIEW_FULL - Includes all data about the Backup. This is the default value (for both ListBackups and GetBackup).
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response for the FetchBackupsForResourceType method.
  &quot;backups&quot;: [ # The Backups from the specified parent.
    { # Message describing a Backup object.
      &quot;alloyDbBackupProperties&quot;: { # AlloyDbClusterBackupProperties represents AlloyDB cluster backup properties. . # Output only. AlloyDB specific backup properties.
        &quot;chainId&quot;: &quot;A String&quot;, # Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.
        &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.
        &quot;description&quot;: &quot;A String&quot;, # An optional text description for the backup.
        &quot;storedBytes&quot;: &quot;A String&quot;, # Output only. Storage usage of this particular backup
      },
      &quot;backupApplianceBackupProperties&quot;: { # BackupApplianceBackupProperties represents BackupDR backup appliance&#x27;s properties. # Output only. Backup Appliance specific backup properties.
        &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time when this backup object was finalized (if none, backup is not finalized).
        &quot;generationId&quot;: 42, # Output only. The numeric generation ID of the backup (monotonically increasing).
        &quot;recoveryRangeEndTime&quot;: &quot;A String&quot;, # Optional. The latest timestamp of data available in this Backup.
        &quot;recoveryRangeStartTime&quot;: &quot;A String&quot;, # Optional. The earliest timestamp of data available in this Backup.
      },
      &quot;backupApplianceLocks&quot;: [ # Optional. The list of BackupLocks taken by the accessor Backup Appliance.
        { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
          &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
            &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
            &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
            &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
            &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
            &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
            &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
          },
          &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
          &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
            &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
          },
        },
      ],
      &quot;backupType&quot;: &quot;A String&quot;, # Output only. Type of the backup, unspecified, scheduled or ondemand.
      &quot;cloudSqlInstanceBackupProperties&quot;: { # CloudSqlInstanceBackupProperties represents Cloud SQL Instance Backup properties. # Output only. Cloud SQL specific backup properties.
        &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The installed database version of the Cloud SQL instance when the backup was taken.
        &quot;finalBackup&quot;: True or False, # Output only. Whether the backup is a final backup.
        &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
        &quot;instanceDeleteTime&quot;: &quot;A String&quot;, # Output only. The instance delete timestamp.
        &quot;instanceTier&quot;: &quot;A String&quot;, # Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
        &quot;sourceInstance&quot;: &quot;A String&quot;, # Output only. The source instance of the backup. Format: projects/{project}/instances/{instance}
      },
      &quot;computeInstanceBackupProperties&quot;: { # ComputeInstanceBackupProperties represents Compute Engine instance backup properties. # Output only. Compute Engine specific backup properties.
        &quot;canIpForward&quot;: True or False, # Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify `true`. If unsure, leave this set to `false`. See the https://cloud.google.com/vpc/docs/using-routes#canipforward documentation for more information.
        &quot;description&quot;: &quot;A String&quot;, # An optional text description for the instances that are created from these properties.
        &quot;disk&quot;: [ # An array of disks that are associated with the instances that are created from these properties.
          { # An instance-attached disk resource.
            &quot;autoDelete&quot;: True or False, # Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
            &quot;boot&quot;: True or False, # Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
            &quot;deviceName&quot;: &quot;A String&quot;, # Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
            &quot;diskEncryptionKey&quot;: { # A customer-supplied encryption key. # Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
              &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The name of the encryption key that is stored in Google Cloud KMS.
              &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
              &quot;rawKey&quot;: &quot;A String&quot;, # Optional. Specifies a 256-bit customer-supplied encryption key.
              &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
            },
            &quot;diskInterface&quot;: &quot;A String&quot;, # Optional. Specifies the disk interface to use for attaching this disk.
            &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. The size of the disk in GB.
            &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
            &quot;diskTypeDeprecated&quot;: &quot;A String&quot;, # Specifies the type of the disk.
            &quot;guestOsFeature&quot;: [ # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
              { # Feature type of the Guest OS.
                &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
              },
            ],
            &quot;index&quot;: &quot;A String&quot;, # Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
            &quot;initializeParams&quot;: { # Specifies the parameters to initialize this disk. # Optional. Specifies the parameters to initialize this disk.
              &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
              &quot;replicaZones&quot;: [ # Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
                &quot;A String&quot;,
              ],
            },
            &quot;kind&quot;: &quot;A String&quot;, # Optional. Type of the resource.
            &quot;license&quot;: [ # Optional. Any valid publicly visible licenses.
              &quot;A String&quot;,
            ],
            &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode in which to attach this disk.
            &quot;savedState&quot;: &quot;A String&quot;, # Optional. Output only. The state of the disk.
            &quot;source&quot;: &quot;A String&quot;, # Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
            &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the disk.
          },
        ],
        &quot;guestAccelerator&quot;: [ # A list of guest accelerator cards&#x27; type and count to use for instances created from these properties.
          { # A specification of the type and number of accelerator cards attached to the instance.
            &quot;acceleratorCount&quot;: 42, # Optional. The number of the guest accelerator cards exposed to this instance.
            &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. Full or partial URL of the accelerator type resource to attach to this instance.
          },
        ],
        &quot;keyRevocationActionType&quot;: &quot;A String&quot;, # KeyRevocationActionType of the instance. Supported options are &quot;STOP&quot; and &quot;NONE&quot;. The default value is &quot;NONE&quot; if it is not specified.
        &quot;labels&quot;: { # Labels to apply to instances that are created from these properties.
          &quot;a_key&quot;: &quot;A String&quot;,
        },
        &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for instances that are created from these properties.
        &quot;metadata&quot;: { # A metadata key/value entry. # The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information.
          &quot;items&quot;: [ # Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
            { # A key/value pair to be used for storing metadata.
              &quot;key&quot;: &quot;A String&quot;, # Optional. Key for the metadata entry.
              &quot;value&quot;: &quot;A String&quot;, # Optional. Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
            },
          ],
        },
        &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. For more information, read https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
        &quot;networkInterface&quot;: [ # An array of network access configurations for this interface.
          { # A network interface resource attached to an instance. s
            &quot;accessConfigs&quot;: [ # Optional. An array of configurations for this interface. Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
              { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
                &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
                &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
                &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
                &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
                &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
                &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
                &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
                &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
              },
            ],
            &quot;aliasIpRanges&quot;: [ # Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
              { # An alias IP range attached to an instance&#x27;s network interface.
                &quot;ipCidrRange&quot;: &quot;A String&quot;, # Optional. The IP alias ranges to allocate for this interface.
                &quot;subnetworkRangeName&quot;: &quot;A String&quot;, # Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
              },
            ],
            &quot;internalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the primary internal IPv6 range.
            &quot;ipv6AccessConfigs&quot;: [ # Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
              { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
                &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
                &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
                &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
                &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
                &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
                &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
                &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
                &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
              },
            ],
            &quot;ipv6AccessType&quot;: &quot;A String&quot;, # Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
            &quot;ipv6Address&quot;: &quot;A String&quot;, # Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance&#x27;s zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance&#x27;s subnetwork.
            &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the network interface, which is generated by the server.
            &quot;network&quot;: &quot;A String&quot;, # Optional. URL of the VPC network resource for this instance.
            &quot;networkAttachment&quot;: &quot;A String&quot;, # Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
            &quot;networkIP&quot;: &quot;A String&quot;, # Optional. An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
            &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
            &quot;queueCount&quot;: 42, # Optional. The networking queue count that&#x27;s specified by users for the network interface. Both Rx and Tx queues will be set to this number. It&#x27;ll be empty if not specified by the users.
            &quot;stackType&quot;: &quot;A String&quot;, # The stack type for this network interface.
            &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The URL of the Subnetwork resource for this instance.
          },
        ],
        &quot;scheduling&quot;: { # Sets the scheduling options for an Instance. # Specifies the scheduling options for the instances that are created from these properties.
          &quot;automaticRestart&quot;: True or False, # Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
          &quot;instanceTerminationAction&quot;: &quot;A String&quot;, # Optional. Specifies the termination action for the instance.
          &quot;localSsdRecoveryTimeout&quot;: { # A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like &quot;day&quot; or &quot;month&quot;. Range is approximately 10,000 years. # Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
            &quot;nanos&quot;: 42, # Optional. Span of time that&#x27;s a fraction of a second at nanosecond resolution.
            &quot;seconds&quot;: &quot;A String&quot;, # Optional. Span of time at a resolution of a second.
          },
          &quot;minNodeCpus&quot;: 42, # Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
          &quot;nodeAffinities&quot;: [ # Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
            { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
              &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of Node resource.
              &quot;operator&quot;: &quot;A String&quot;, # Optional. Defines the operation of node selection.
              &quot;values&quot;: [ # Optional. Corresponds to the label values of Node resource.
                &quot;A String&quot;,
              ],
            },
          ],
          &quot;onHostMaintenance&quot;: &quot;A String&quot;, # Optional. Defines the maintenance behavior for this instance.
          &quot;preemptible&quot;: True or False, # Optional. Defines whether the instance is preemptible.
          &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Specifies the provisioning model of the instance.
        },
        &quot;serviceAccount&quot;: [ # A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
          { # A service account.
            &quot;email&quot;: &quot;A String&quot;, # Optional. Email address of the service account.
            &quot;scopes&quot;: [ # Optional. The list of scopes to be made available for this service account.
              &quot;A String&quot;,
            ],
          },
        ],
        &quot;sourceInstance&quot;: &quot;A String&quot;, # The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance
        &quot;tags&quot;: { # A set of instance tags. # A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt).
          &quot;items&quot;: [ # Optional. An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
            &quot;A String&quot;,
          ],
        },
      },
      &quot;consistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when this backup was captured from the source.
      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
      &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the Backup instance (2048 characters or less).
      &quot;diskBackupProperties&quot;: { # DiskBackupProperties represents the properties of a Disk backup. # Output only. Disk specific backup properties.
        &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the source disk.
        &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the source disk. Valid values are ARM64 or X86_64.
        &quot;description&quot;: &quot;A String&quot;, # A description of the source disk.
        &quot;enableConfidentialCompute&quot;: True or False, # Indicates whether the source disk is using confidential compute mode.
        &quot;guestOsFeature&quot;: [ # A list of guest OS features that are applicable to this backup.
          { # Feature type of the Guest OS.
            &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
          },
        ],
        &quot;labels&quot;: { # The labels of the source disk.
          &quot;a_key&quot;: &quot;A String&quot;,
        },
        &quot;licenses&quot;: [ # A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
          &quot;A String&quot;,
        ],
        &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # The physical block size of the source disk.
        &quot;provisionedIops&quot;: &quot;A String&quot;, # The number of IOPS provisioned for the source disk.
        &quot;provisionedThroughput&quot;: &quot;A String&quot;, # The number of throughput provisioned for the source disk.
        &quot;region&quot;: &quot;A String&quot;, # Region and zone are mutually exclusive fields. The URL of the region of the source disk.
        &quot;replicaZones&quot;: [ # The URL of the Zones where the source disk should be replicated.
          &quot;A String&quot;,
        ],
        &quot;sizeGb&quot;: &quot;A String&quot;, # Size(in GB) of the source disk.
        &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this backup.
        &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool of the source disk.
        &quot;type&quot;: &quot;A String&quot;, # The URL of the type of the disk.
        &quot;zone&quot;: &quot;A String&quot;, # The URL of the Zone where the source disk.
      },
      &quot;enforcedRetentionEndTime&quot;: &quot;A String&quot;, # Optional. The backup can not be deleted before this time.
      &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag to prevent updates from overwriting each other.
      &quot;expireTime&quot;: &quot;A String&quot;, # Optional. When this backup is automatically expired.
      &quot;gcpBackupPlanInfo&quot;: { # GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup. # Output only. Configuration for a Google Cloud resource.
        &quot;backupPlan&quot;: &quot;A String&quot;, # Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
        &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.
        &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}
        &quot;backupPlanRuleId&quot;: &quot;A String&quot;, # The rule id of the backup plan which triggered this backup in case of scheduled backup or used for
      },
      &quot;gcpResource&quot;: { # Minimum details to identify a Google Cloud resource for a backup. # Output only. Unique identifier of the GCP resource that is being backed up.
        &quot;gcpResourcename&quot;: &quot;A String&quot;, # Name of the Google Cloud resource.
        &quot;location&quot;: &quot;A String&quot;, # Location of the resource: //&quot;global&quot;/&quot;unspecified&quot;.
        &quot;type&quot;: &quot;A String&quot;, # Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
      },
      &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined.
        &quot;a_key&quot;: &quot;A String&quot;,
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup to create. It must have the format`&quot;projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}&quot;`. `{backup}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.
      &quot;resourceSizeBytes&quot;: &quot;A String&quot;, # Output only. source resource size in bytes at the time of the backup.
      &quot;satisfiesPzi&quot;: True or False, # Optional. Output only. Reserved for future use.
      &quot;satisfiesPzs&quot;: True or False, # Optional. Output only. Reserved for future use.
      &quot;serviceLocks&quot;: [ # Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
        { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
          &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
            &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
            &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
            &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
            &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
            &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
            &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
          },
          &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
          &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
            &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
          },
        },
      ],
      &quot;state&quot;: &quot;A String&quot;, # Output only. The Backup resource instance state.
      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
}</pre>
</div>

<div class="method">
    <code class="details" id="fetchForResourceType_next">fetchForResourceType_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="get">get(name, view=None, x__xgafv=None)</code>
  <pre>Gets details of a Backup.

Args:
  name: string, Required. Name of the data source resource name, in the format &#x27;projects/{project_id}/locations/{location}/backupVaults/{backupVault}/dataSources/{datasource}/backups/{backup}&#x27; (required)
  view: string, Optional. Reserved for future use to provide a BASIC &amp; FULL view of Backup resource.
    Allowed values
      BACKUP_VIEW_UNSPECIFIED - If the value is not set, the default &#x27;FULL&#x27; view is used.
      BACKUP_VIEW_BASIC - Includes basic data about the Backup, but not the full contents.
      BACKUP_VIEW_FULL - Includes all data about the Backup. This is the default value (for both ListBackups and GetBackup).
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Message describing a Backup object.
  &quot;alloyDbBackupProperties&quot;: { # AlloyDbClusterBackupProperties represents AlloyDB cluster backup properties. . # Output only. AlloyDB specific backup properties.
    &quot;chainId&quot;: &quot;A String&quot;, # Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.
    &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.
    &quot;description&quot;: &quot;A String&quot;, # An optional text description for the backup.
    &quot;storedBytes&quot;: &quot;A String&quot;, # Output only. Storage usage of this particular backup
  },
  &quot;backupApplianceBackupProperties&quot;: { # BackupApplianceBackupProperties represents BackupDR backup appliance&#x27;s properties. # Output only. Backup Appliance specific backup properties.
    &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time when this backup object was finalized (if none, backup is not finalized).
    &quot;generationId&quot;: 42, # Output only. The numeric generation ID of the backup (monotonically increasing).
    &quot;recoveryRangeEndTime&quot;: &quot;A String&quot;, # Optional. The latest timestamp of data available in this Backup.
    &quot;recoveryRangeStartTime&quot;: &quot;A String&quot;, # Optional. The earliest timestamp of data available in this Backup.
  },
  &quot;backupApplianceLocks&quot;: [ # Optional. The list of BackupLocks taken by the accessor Backup Appliance.
    { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
      &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
        &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
        &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
        &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
        &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
        &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
        &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
      },
      &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
      &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
        &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
      },
    },
  ],
  &quot;backupType&quot;: &quot;A String&quot;, # Output only. Type of the backup, unspecified, scheduled or ondemand.
  &quot;cloudSqlInstanceBackupProperties&quot;: { # CloudSqlInstanceBackupProperties represents Cloud SQL Instance Backup properties. # Output only. Cloud SQL specific backup properties.
    &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The installed database version of the Cloud SQL instance when the backup was taken.
    &quot;finalBackup&quot;: True or False, # Output only. Whether the backup is a final backup.
    &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
    &quot;instanceDeleteTime&quot;: &quot;A String&quot;, # Output only. The instance delete timestamp.
    &quot;instanceTier&quot;: &quot;A String&quot;, # Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
    &quot;sourceInstance&quot;: &quot;A String&quot;, # Output only. The source instance of the backup. Format: projects/{project}/instances/{instance}
  },
  &quot;computeInstanceBackupProperties&quot;: { # ComputeInstanceBackupProperties represents Compute Engine instance backup properties. # Output only. Compute Engine specific backup properties.
    &quot;canIpForward&quot;: True or False, # Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify `true`. If unsure, leave this set to `false`. See the https://cloud.google.com/vpc/docs/using-routes#canipforward documentation for more information.
    &quot;description&quot;: &quot;A String&quot;, # An optional text description for the instances that are created from these properties.
    &quot;disk&quot;: [ # An array of disks that are associated with the instances that are created from these properties.
      { # An instance-attached disk resource.
        &quot;autoDelete&quot;: True or False, # Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
        &quot;boot&quot;: True or False, # Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
        &quot;deviceName&quot;: &quot;A String&quot;, # Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
        &quot;diskEncryptionKey&quot;: { # A customer-supplied encryption key. # Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The name of the encryption key that is stored in Google Cloud KMS.
          &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
          &quot;rawKey&quot;: &quot;A String&quot;, # Optional. Specifies a 256-bit customer-supplied encryption key.
          &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
        },
        &quot;diskInterface&quot;: &quot;A String&quot;, # Optional. Specifies the disk interface to use for attaching this disk.
        &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. The size of the disk in GB.
        &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
        &quot;diskTypeDeprecated&quot;: &quot;A String&quot;, # Specifies the type of the disk.
        &quot;guestOsFeature&quot;: [ # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
          { # Feature type of the Guest OS.
            &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
          },
        ],
        &quot;index&quot;: &quot;A String&quot;, # Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
        &quot;initializeParams&quot;: { # Specifies the parameters to initialize this disk. # Optional. Specifies the parameters to initialize this disk.
          &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
          &quot;replicaZones&quot;: [ # Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
            &quot;A String&quot;,
          ],
        },
        &quot;kind&quot;: &quot;A String&quot;, # Optional. Type of the resource.
        &quot;license&quot;: [ # Optional. Any valid publicly visible licenses.
          &quot;A String&quot;,
        ],
        &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode in which to attach this disk.
        &quot;savedState&quot;: &quot;A String&quot;, # Optional. Output only. The state of the disk.
        &quot;source&quot;: &quot;A String&quot;, # Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
        &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the disk.
      },
    ],
    &quot;guestAccelerator&quot;: [ # A list of guest accelerator cards&#x27; type and count to use for instances created from these properties.
      { # A specification of the type and number of accelerator cards attached to the instance.
        &quot;acceleratorCount&quot;: 42, # Optional. The number of the guest accelerator cards exposed to this instance.
        &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. Full or partial URL of the accelerator type resource to attach to this instance.
      },
    ],
    &quot;keyRevocationActionType&quot;: &quot;A String&quot;, # KeyRevocationActionType of the instance. Supported options are &quot;STOP&quot; and &quot;NONE&quot;. The default value is &quot;NONE&quot; if it is not specified.
    &quot;labels&quot;: { # Labels to apply to instances that are created from these properties.
      &quot;a_key&quot;: &quot;A String&quot;,
    },
    &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for instances that are created from these properties.
    &quot;metadata&quot;: { # A metadata key/value entry. # The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information.
      &quot;items&quot;: [ # Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
        { # A key/value pair to be used for storing metadata.
          &quot;key&quot;: &quot;A String&quot;, # Optional. Key for the metadata entry.
          &quot;value&quot;: &quot;A String&quot;, # Optional. Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
        },
      ],
    },
    &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. For more information, read https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
    &quot;networkInterface&quot;: [ # An array of network access configurations for this interface.
      { # A network interface resource attached to an instance. s
        &quot;accessConfigs&quot;: [ # Optional. An array of configurations for this interface. Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
          { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
            &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
            &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
            &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
            &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
            &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
            &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
            &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
            &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
          },
        ],
        &quot;aliasIpRanges&quot;: [ # Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
          { # An alias IP range attached to an instance&#x27;s network interface.
            &quot;ipCidrRange&quot;: &quot;A String&quot;, # Optional. The IP alias ranges to allocate for this interface.
            &quot;subnetworkRangeName&quot;: &quot;A String&quot;, # Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
          },
        ],
        &quot;internalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the primary internal IPv6 range.
        &quot;ipv6AccessConfigs&quot;: [ # Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
          { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
            &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
            &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
            &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
            &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
            &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
            &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
            &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
            &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
          },
        ],
        &quot;ipv6AccessType&quot;: &quot;A String&quot;, # Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
        &quot;ipv6Address&quot;: &quot;A String&quot;, # Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance&#x27;s zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance&#x27;s subnetwork.
        &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the network interface, which is generated by the server.
        &quot;network&quot;: &quot;A String&quot;, # Optional. URL of the VPC network resource for this instance.
        &quot;networkAttachment&quot;: &quot;A String&quot;, # Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
        &quot;networkIP&quot;: &quot;A String&quot;, # Optional. An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
        &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
        &quot;queueCount&quot;: 42, # Optional. The networking queue count that&#x27;s specified by users for the network interface. Both Rx and Tx queues will be set to this number. It&#x27;ll be empty if not specified by the users.
        &quot;stackType&quot;: &quot;A String&quot;, # The stack type for this network interface.
        &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The URL of the Subnetwork resource for this instance.
      },
    ],
    &quot;scheduling&quot;: { # Sets the scheduling options for an Instance. # Specifies the scheduling options for the instances that are created from these properties.
      &quot;automaticRestart&quot;: True or False, # Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
      &quot;instanceTerminationAction&quot;: &quot;A String&quot;, # Optional. Specifies the termination action for the instance.
      &quot;localSsdRecoveryTimeout&quot;: { # A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like &quot;day&quot; or &quot;month&quot;. Range is approximately 10,000 years. # Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
        &quot;nanos&quot;: 42, # Optional. Span of time that&#x27;s a fraction of a second at nanosecond resolution.
        &quot;seconds&quot;: &quot;A String&quot;, # Optional. Span of time at a resolution of a second.
      },
      &quot;minNodeCpus&quot;: 42, # Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
      &quot;nodeAffinities&quot;: [ # Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
        { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
          &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of Node resource.
          &quot;operator&quot;: &quot;A String&quot;, # Optional. Defines the operation of node selection.
          &quot;values&quot;: [ # Optional. Corresponds to the label values of Node resource.
            &quot;A String&quot;,
          ],
        },
      ],
      &quot;onHostMaintenance&quot;: &quot;A String&quot;, # Optional. Defines the maintenance behavior for this instance.
      &quot;preemptible&quot;: True or False, # Optional. Defines whether the instance is preemptible.
      &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Specifies the provisioning model of the instance.
    },
    &quot;serviceAccount&quot;: [ # A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
      { # A service account.
        &quot;email&quot;: &quot;A String&quot;, # Optional. Email address of the service account.
        &quot;scopes&quot;: [ # Optional. The list of scopes to be made available for this service account.
          &quot;A String&quot;,
        ],
      },
    ],
    &quot;sourceInstance&quot;: &quot;A String&quot;, # The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance
    &quot;tags&quot;: { # A set of instance tags. # A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt).
      &quot;items&quot;: [ # Optional. An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
        &quot;A String&quot;,
      ],
    },
  },
  &quot;consistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when this backup was captured from the source.
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
  &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the Backup instance (2048 characters or less).
  &quot;diskBackupProperties&quot;: { # DiskBackupProperties represents the properties of a Disk backup. # Output only. Disk specific backup properties.
    &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the source disk.
    &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the source disk. Valid values are ARM64 or X86_64.
    &quot;description&quot;: &quot;A String&quot;, # A description of the source disk.
    &quot;enableConfidentialCompute&quot;: True or False, # Indicates whether the source disk is using confidential compute mode.
    &quot;guestOsFeature&quot;: [ # A list of guest OS features that are applicable to this backup.
      { # Feature type of the Guest OS.
        &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
      },
    ],
    &quot;labels&quot;: { # The labels of the source disk.
      &quot;a_key&quot;: &quot;A String&quot;,
    },
    &quot;licenses&quot;: [ # A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
      &quot;A String&quot;,
    ],
    &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # The physical block size of the source disk.
    &quot;provisionedIops&quot;: &quot;A String&quot;, # The number of IOPS provisioned for the source disk.
    &quot;provisionedThroughput&quot;: &quot;A String&quot;, # The number of throughput provisioned for the source disk.
    &quot;region&quot;: &quot;A String&quot;, # Region and zone are mutually exclusive fields. The URL of the region of the source disk.
    &quot;replicaZones&quot;: [ # The URL of the Zones where the source disk should be replicated.
      &quot;A String&quot;,
    ],
    &quot;sizeGb&quot;: &quot;A String&quot;, # Size(in GB) of the source disk.
    &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this backup.
    &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool of the source disk.
    &quot;type&quot;: &quot;A String&quot;, # The URL of the type of the disk.
    &quot;zone&quot;: &quot;A String&quot;, # The URL of the Zone where the source disk.
  },
  &quot;enforcedRetentionEndTime&quot;: &quot;A String&quot;, # Optional. The backup can not be deleted before this time.
  &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag to prevent updates from overwriting each other.
  &quot;expireTime&quot;: &quot;A String&quot;, # Optional. When this backup is automatically expired.
  &quot;gcpBackupPlanInfo&quot;: { # GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup. # Output only. Configuration for a Google Cloud resource.
    &quot;backupPlan&quot;: &quot;A String&quot;, # Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
    &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.
    &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}
    &quot;backupPlanRuleId&quot;: &quot;A String&quot;, # The rule id of the backup plan which triggered this backup in case of scheduled backup or used for
  },
  &quot;gcpResource&quot;: { # Minimum details to identify a Google Cloud resource for a backup. # Output only. Unique identifier of the GCP resource that is being backed up.
    &quot;gcpResourcename&quot;: &quot;A String&quot;, # Name of the Google Cloud resource.
    &quot;location&quot;: &quot;A String&quot;, # Location of the resource: //&quot;global&quot;/&quot;unspecified&quot;.
    &quot;type&quot;: &quot;A String&quot;, # Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
  },
  &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined.
    &quot;a_key&quot;: &quot;A String&quot;,
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup to create. It must have the format`&quot;projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}&quot;`. `{backup}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.
  &quot;resourceSizeBytes&quot;: &quot;A String&quot;, # Output only. source resource size in bytes at the time of the backup.
  &quot;satisfiesPzi&quot;: True or False, # Optional. Output only. Reserved for future use.
  &quot;satisfiesPzs&quot;: True or False, # Optional. Output only. Reserved for future use.
  &quot;serviceLocks&quot;: [ # Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
    { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
      &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
        &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
        &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
        &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
        &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
        &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
        &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
      },
      &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
      &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
        &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
      },
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The Backup resource instance state.
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
}</pre>
</div>

<div class="method">
    <code class="details" id="list">list(parent, filter=None, orderBy=None, pageSize=None, pageToken=None, view=None, x__xgafv=None)</code>
  <pre>Lists Backups in a given project and location.

Args:
  parent: string, Required. The project and location for which to retrieve backup information, in the format &#x27;projects/{project_id}/locations/{location}&#x27;. In Cloud Backup and DR, locations map to Google Cloud regions, for example **us-central1**. To retrieve data sources for all locations, use &quot;-&quot; for the &#x27;{location}&#x27; value. (required)
  filter: string, Optional. Filtering results.
  orderBy: string, Optional. Hint for how to order the results.
  pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
  pageToken: string, Optional. A token identifying a page of results the server should return.
  view: string, Optional. Reserved for future use to provide a BASIC &amp; FULL view of Backup resource.
    Allowed values
      BACKUP_VIEW_UNSPECIFIED - If the value is not set, the default &#x27;FULL&#x27; view is used.
      BACKUP_VIEW_BASIC - Includes basic data about the Backup, but not the full contents.
      BACKUP_VIEW_FULL - Includes all data about the Backup. This is the default value (for both ListBackups and GetBackup).
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for listing Backups.
  &quot;backups&quot;: [ # The list of Backup instances in the project for the specified location. If the &#x27;{location}&#x27; value in the request is &quot;-&quot;, the response contains a list of instances from all locations. In case any location is unreachable, the response will only return data sources in reachable locations and the &#x27;unreachable&#x27; field will be populated with a list of unreachable locations.
    { # Message describing a Backup object.
      &quot;alloyDbBackupProperties&quot;: { # AlloyDbClusterBackupProperties represents AlloyDB cluster backup properties. . # Output only. AlloyDB specific backup properties.
        &quot;chainId&quot;: &quot;A String&quot;, # Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.
        &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.
        &quot;description&quot;: &quot;A String&quot;, # An optional text description for the backup.
        &quot;storedBytes&quot;: &quot;A String&quot;, # Output only. Storage usage of this particular backup
      },
      &quot;backupApplianceBackupProperties&quot;: { # BackupApplianceBackupProperties represents BackupDR backup appliance&#x27;s properties. # Output only. Backup Appliance specific backup properties.
        &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time when this backup object was finalized (if none, backup is not finalized).
        &quot;generationId&quot;: 42, # Output only. The numeric generation ID of the backup (monotonically increasing).
        &quot;recoveryRangeEndTime&quot;: &quot;A String&quot;, # Optional. The latest timestamp of data available in this Backup.
        &quot;recoveryRangeStartTime&quot;: &quot;A String&quot;, # Optional. The earliest timestamp of data available in this Backup.
      },
      &quot;backupApplianceLocks&quot;: [ # Optional. The list of BackupLocks taken by the accessor Backup Appliance.
        { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
          &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
            &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
            &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
            &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
            &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
            &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
            &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
          },
          &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
          &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
            &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
          },
        },
      ],
      &quot;backupType&quot;: &quot;A String&quot;, # Output only. Type of the backup, unspecified, scheduled or ondemand.
      &quot;cloudSqlInstanceBackupProperties&quot;: { # CloudSqlInstanceBackupProperties represents Cloud SQL Instance Backup properties. # Output only. Cloud SQL specific backup properties.
        &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The installed database version of the Cloud SQL instance when the backup was taken.
        &quot;finalBackup&quot;: True or False, # Output only. Whether the backup is a final backup.
        &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
        &quot;instanceDeleteTime&quot;: &quot;A String&quot;, # Output only. The instance delete timestamp.
        &quot;instanceTier&quot;: &quot;A String&quot;, # Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
        &quot;sourceInstance&quot;: &quot;A String&quot;, # Output only. The source instance of the backup. Format: projects/{project}/instances/{instance}
      },
      &quot;computeInstanceBackupProperties&quot;: { # ComputeInstanceBackupProperties represents Compute Engine instance backup properties. # Output only. Compute Engine specific backup properties.
        &quot;canIpForward&quot;: True or False, # Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify `true`. If unsure, leave this set to `false`. See the https://cloud.google.com/vpc/docs/using-routes#canipforward documentation for more information.
        &quot;description&quot;: &quot;A String&quot;, # An optional text description for the instances that are created from these properties.
        &quot;disk&quot;: [ # An array of disks that are associated with the instances that are created from these properties.
          { # An instance-attached disk resource.
            &quot;autoDelete&quot;: True or False, # Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
            &quot;boot&quot;: True or False, # Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
            &quot;deviceName&quot;: &quot;A String&quot;, # Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
            &quot;diskEncryptionKey&quot;: { # A customer-supplied encryption key. # Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
              &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The name of the encryption key that is stored in Google Cloud KMS.
              &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
              &quot;rawKey&quot;: &quot;A String&quot;, # Optional. Specifies a 256-bit customer-supplied encryption key.
              &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
            },
            &quot;diskInterface&quot;: &quot;A String&quot;, # Optional. Specifies the disk interface to use for attaching this disk.
            &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. The size of the disk in GB.
            &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
            &quot;diskTypeDeprecated&quot;: &quot;A String&quot;, # Specifies the type of the disk.
            &quot;guestOsFeature&quot;: [ # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
              { # Feature type of the Guest OS.
                &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
              },
            ],
            &quot;index&quot;: &quot;A String&quot;, # Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
            &quot;initializeParams&quot;: { # Specifies the parameters to initialize this disk. # Optional. Specifies the parameters to initialize this disk.
              &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
              &quot;replicaZones&quot;: [ # Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
                &quot;A String&quot;,
              ],
            },
            &quot;kind&quot;: &quot;A String&quot;, # Optional. Type of the resource.
            &quot;license&quot;: [ # Optional. Any valid publicly visible licenses.
              &quot;A String&quot;,
            ],
            &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode in which to attach this disk.
            &quot;savedState&quot;: &quot;A String&quot;, # Optional. Output only. The state of the disk.
            &quot;source&quot;: &quot;A String&quot;, # Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
            &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the disk.
          },
        ],
        &quot;guestAccelerator&quot;: [ # A list of guest accelerator cards&#x27; type and count to use for instances created from these properties.
          { # A specification of the type and number of accelerator cards attached to the instance.
            &quot;acceleratorCount&quot;: 42, # Optional. The number of the guest accelerator cards exposed to this instance.
            &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. Full or partial URL of the accelerator type resource to attach to this instance.
          },
        ],
        &quot;keyRevocationActionType&quot;: &quot;A String&quot;, # KeyRevocationActionType of the instance. Supported options are &quot;STOP&quot; and &quot;NONE&quot;. The default value is &quot;NONE&quot; if it is not specified.
        &quot;labels&quot;: { # Labels to apply to instances that are created from these properties.
          &quot;a_key&quot;: &quot;A String&quot;,
        },
        &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for instances that are created from these properties.
        &quot;metadata&quot;: { # A metadata key/value entry. # The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information.
          &quot;items&quot;: [ # Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
            { # A key/value pair to be used for storing metadata.
              &quot;key&quot;: &quot;A String&quot;, # Optional. Key for the metadata entry.
              &quot;value&quot;: &quot;A String&quot;, # Optional. Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
            },
          ],
        },
        &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. For more information, read https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
        &quot;networkInterface&quot;: [ # An array of network access configurations for this interface.
          { # A network interface resource attached to an instance. s
            &quot;accessConfigs&quot;: [ # Optional. An array of configurations for this interface. Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
              { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
                &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
                &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
                &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
                &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
                &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
                &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
                &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
                &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
              },
            ],
            &quot;aliasIpRanges&quot;: [ # Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
              { # An alias IP range attached to an instance&#x27;s network interface.
                &quot;ipCidrRange&quot;: &quot;A String&quot;, # Optional. The IP alias ranges to allocate for this interface.
                &quot;subnetworkRangeName&quot;: &quot;A String&quot;, # Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
              },
            ],
            &quot;internalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the primary internal IPv6 range.
            &quot;ipv6AccessConfigs&quot;: [ # Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
              { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
                &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
                &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
                &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
                &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
                &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
                &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
                &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
                &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
              },
            ],
            &quot;ipv6AccessType&quot;: &quot;A String&quot;, # Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
            &quot;ipv6Address&quot;: &quot;A String&quot;, # Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance&#x27;s zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance&#x27;s subnetwork.
            &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the network interface, which is generated by the server.
            &quot;network&quot;: &quot;A String&quot;, # Optional. URL of the VPC network resource for this instance.
            &quot;networkAttachment&quot;: &quot;A String&quot;, # Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
            &quot;networkIP&quot;: &quot;A String&quot;, # Optional. An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
            &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
            &quot;queueCount&quot;: 42, # Optional. The networking queue count that&#x27;s specified by users for the network interface. Both Rx and Tx queues will be set to this number. It&#x27;ll be empty if not specified by the users.
            &quot;stackType&quot;: &quot;A String&quot;, # The stack type for this network interface.
            &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The URL of the Subnetwork resource for this instance.
          },
        ],
        &quot;scheduling&quot;: { # Sets the scheduling options for an Instance. # Specifies the scheduling options for the instances that are created from these properties.
          &quot;automaticRestart&quot;: True or False, # Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
          &quot;instanceTerminationAction&quot;: &quot;A String&quot;, # Optional. Specifies the termination action for the instance.
          &quot;localSsdRecoveryTimeout&quot;: { # A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like &quot;day&quot; or &quot;month&quot;. Range is approximately 10,000 years. # Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
            &quot;nanos&quot;: 42, # Optional. Span of time that&#x27;s a fraction of a second at nanosecond resolution.
            &quot;seconds&quot;: &quot;A String&quot;, # Optional. Span of time at a resolution of a second.
          },
          &quot;minNodeCpus&quot;: 42, # Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
          &quot;nodeAffinities&quot;: [ # Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
            { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
              &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of Node resource.
              &quot;operator&quot;: &quot;A String&quot;, # Optional. Defines the operation of node selection.
              &quot;values&quot;: [ # Optional. Corresponds to the label values of Node resource.
                &quot;A String&quot;,
              ],
            },
          ],
          &quot;onHostMaintenance&quot;: &quot;A String&quot;, # Optional. Defines the maintenance behavior for this instance.
          &quot;preemptible&quot;: True or False, # Optional. Defines whether the instance is preemptible.
          &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Specifies the provisioning model of the instance.
        },
        &quot;serviceAccount&quot;: [ # A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
          { # A service account.
            &quot;email&quot;: &quot;A String&quot;, # Optional. Email address of the service account.
            &quot;scopes&quot;: [ # Optional. The list of scopes to be made available for this service account.
              &quot;A String&quot;,
            ],
          },
        ],
        &quot;sourceInstance&quot;: &quot;A String&quot;, # The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance
        &quot;tags&quot;: { # A set of instance tags. # A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt).
          &quot;items&quot;: [ # Optional. An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
            &quot;A String&quot;,
          ],
        },
      },
      &quot;consistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when this backup was captured from the source.
      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
      &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the Backup instance (2048 characters or less).
      &quot;diskBackupProperties&quot;: { # DiskBackupProperties represents the properties of a Disk backup. # Output only. Disk specific backup properties.
        &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the source disk.
        &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the source disk. Valid values are ARM64 or X86_64.
        &quot;description&quot;: &quot;A String&quot;, # A description of the source disk.
        &quot;enableConfidentialCompute&quot;: True or False, # Indicates whether the source disk is using confidential compute mode.
        &quot;guestOsFeature&quot;: [ # A list of guest OS features that are applicable to this backup.
          { # Feature type of the Guest OS.
            &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
          },
        ],
        &quot;labels&quot;: { # The labels of the source disk.
          &quot;a_key&quot;: &quot;A String&quot;,
        },
        &quot;licenses&quot;: [ # A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
          &quot;A String&quot;,
        ],
        &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # The physical block size of the source disk.
        &quot;provisionedIops&quot;: &quot;A String&quot;, # The number of IOPS provisioned for the source disk.
        &quot;provisionedThroughput&quot;: &quot;A String&quot;, # The number of throughput provisioned for the source disk.
        &quot;region&quot;: &quot;A String&quot;, # Region and zone are mutually exclusive fields. The URL of the region of the source disk.
        &quot;replicaZones&quot;: [ # The URL of the Zones where the source disk should be replicated.
          &quot;A String&quot;,
        ],
        &quot;sizeGb&quot;: &quot;A String&quot;, # Size(in GB) of the source disk.
        &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this backup.
        &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool of the source disk.
        &quot;type&quot;: &quot;A String&quot;, # The URL of the type of the disk.
        &quot;zone&quot;: &quot;A String&quot;, # The URL of the Zone where the source disk.
      },
      &quot;enforcedRetentionEndTime&quot;: &quot;A String&quot;, # Optional. The backup can not be deleted before this time.
      &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag to prevent updates from overwriting each other.
      &quot;expireTime&quot;: &quot;A String&quot;, # Optional. When this backup is automatically expired.
      &quot;gcpBackupPlanInfo&quot;: { # GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup. # Output only. Configuration for a Google Cloud resource.
        &quot;backupPlan&quot;: &quot;A String&quot;, # Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
        &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.
        &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}
        &quot;backupPlanRuleId&quot;: &quot;A String&quot;, # The rule id of the backup plan which triggered this backup in case of scheduled backup or used for
      },
      &quot;gcpResource&quot;: { # Minimum details to identify a Google Cloud resource for a backup. # Output only. Unique identifier of the GCP resource that is being backed up.
        &quot;gcpResourcename&quot;: &quot;A String&quot;, # Name of the Google Cloud resource.
        &quot;location&quot;: &quot;A String&quot;, # Location of the resource: //&quot;global&quot;/&quot;unspecified&quot;.
        &quot;type&quot;: &quot;A String&quot;, # Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
      },
      &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined.
        &quot;a_key&quot;: &quot;A String&quot;,
      },
      &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup to create. It must have the format`&quot;projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}&quot;`. `{backup}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.
      &quot;resourceSizeBytes&quot;: &quot;A String&quot;, # Output only. source resource size in bytes at the time of the backup.
      &quot;satisfiesPzi&quot;: True or False, # Optional. Output only. Reserved for future use.
      &quot;satisfiesPzs&quot;: True or False, # Optional. Output only. Reserved for future use.
      &quot;serviceLocks&quot;: [ # Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
        { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
          &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
            &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
            &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
            &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
            &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
            &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
            &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
          },
          &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
          &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
            &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
          },
        },
      ],
      &quot;state&quot;: &quot;A String&quot;, # Output only. The Backup resource instance state.
      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
    },
  ],
  &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return.
  &quot;unreachable&quot;: [ # Locations that could not be reached.
    &quot;A String&quot;,
  ],
}</pre>
</div>

<div class="method">
    <code class="details" id="list_next">list_next()</code>
  <pre>Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call &#x27;execute()&#x27; on to request the next
          page. Returns None if there are no more items in the collection.
        </pre>
</div>

<div class="method">
    <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
  <pre>Updates the settings of a Backup.

Args:
  name: string, Output only. Identifier. Name of the backup to create. It must have the format`&quot;projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}&quot;`. `{backup}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource. (required)
  body: object, The request body.
    The object takes the form of:

{ # Message describing a Backup object.
  &quot;alloyDbBackupProperties&quot;: { # AlloyDbClusterBackupProperties represents AlloyDB cluster backup properties. . # Output only. AlloyDB specific backup properties.
    &quot;chainId&quot;: &quot;A String&quot;, # Output only. The chain id of this backup. Backups belonging to the same chain are sharing the same chain id. This property is calculated and maintained by BackupDR.
    &quot;databaseVersion&quot;: &quot;A String&quot;, # Output only. The PostgreSQL major version of the AlloyDB cluster when the backup was taken.
    &quot;description&quot;: &quot;A String&quot;, # An optional text description for the backup.
    &quot;storedBytes&quot;: &quot;A String&quot;, # Output only. Storage usage of this particular backup
  },
  &quot;backupApplianceBackupProperties&quot;: { # BackupApplianceBackupProperties represents BackupDR backup appliance&#x27;s properties. # Output only. Backup Appliance specific backup properties.
    &quot;finalizeTime&quot;: &quot;A String&quot;, # Output only. The time when this backup object was finalized (if none, backup is not finalized).
    &quot;generationId&quot;: 42, # Output only. The numeric generation ID of the backup (monotonically increasing).
    &quot;recoveryRangeEndTime&quot;: &quot;A String&quot;, # Optional. The latest timestamp of data available in this Backup.
    &quot;recoveryRangeStartTime&quot;: &quot;A String&quot;, # Optional. The earliest timestamp of data available in this Backup.
  },
  &quot;backupApplianceLocks&quot;: [ # Optional. The list of BackupLocks taken by the accessor Backup Appliance.
    { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
      &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
        &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
        &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
        &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
        &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
        &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
        &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
      },
      &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
      &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
        &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
      },
    },
  ],
  &quot;backupType&quot;: &quot;A String&quot;, # Output only. Type of the backup, unspecified, scheduled or ondemand.
  &quot;cloudSqlInstanceBackupProperties&quot;: { # CloudSqlInstanceBackupProperties represents Cloud SQL Instance Backup properties. # Output only. Cloud SQL specific backup properties.
    &quot;databaseInstalledVersion&quot;: &quot;A String&quot;, # Output only. The installed database version of the Cloud SQL instance when the backup was taken.
    &quot;finalBackup&quot;: True or False, # Output only. Whether the backup is a final backup.
    &quot;instanceCreateTime&quot;: &quot;A String&quot;, # Output only. The instance creation timestamp.
    &quot;instanceDeleteTime&quot;: &quot;A String&quot;, # Output only. The instance delete timestamp.
    &quot;instanceTier&quot;: &quot;A String&quot;, # Output only. The tier (or machine type) for this instance. Example: `db-custom-1-3840`
    &quot;sourceInstance&quot;: &quot;A String&quot;, # Output only. The source instance of the backup. Format: projects/{project}/instances/{instance}
  },
  &quot;computeInstanceBackupProperties&quot;: { # ComputeInstanceBackupProperties represents Compute Engine instance backup properties. # Output only. Compute Engine specific backup properties.
    &quot;canIpForward&quot;: True or False, # Enables instances created based on these properties to send packets with source IP addresses other than their own and receive packets with destination IP addresses other than their own. If these instances will be used as an IP gateway or it will be set as the next-hop in a Route resource, specify `true`. If unsure, leave this set to `false`. See the https://cloud.google.com/vpc/docs/using-routes#canipforward documentation for more information.
    &quot;description&quot;: &quot;A String&quot;, # An optional text description for the instances that are created from these properties.
    &quot;disk&quot;: [ # An array of disks that are associated with the instances that are created from these properties.
      { # An instance-attached disk resource.
        &quot;autoDelete&quot;: True or False, # Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
        &quot;boot&quot;: True or False, # Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
        &quot;deviceName&quot;: &quot;A String&quot;, # Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
        &quot;diskEncryptionKey&quot;: { # A customer-supplied encryption key. # Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The name of the encryption key that is stored in Google Cloud KMS.
          &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
          &quot;rawKey&quot;: &quot;A String&quot;, # Optional. Specifies a 256-bit customer-supplied encryption key.
          &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
        },
        &quot;diskInterface&quot;: &quot;A String&quot;, # Optional. Specifies the disk interface to use for attaching this disk.
        &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. The size of the disk in GB.
        &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
        &quot;diskTypeDeprecated&quot;: &quot;A String&quot;, # Specifies the type of the disk.
        &quot;guestOsFeature&quot;: [ # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
          { # Feature type of the Guest OS.
            &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
          },
        ],
        &quot;index&quot;: &quot;A String&quot;, # Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
        &quot;initializeParams&quot;: { # Specifies the parameters to initialize this disk. # Optional. Specifies the parameters to initialize this disk.
          &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
          &quot;replicaZones&quot;: [ # Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
            &quot;A String&quot;,
          ],
        },
        &quot;kind&quot;: &quot;A String&quot;, # Optional. Type of the resource.
        &quot;license&quot;: [ # Optional. Any valid publicly visible licenses.
          &quot;A String&quot;,
        ],
        &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode in which to attach this disk.
        &quot;savedState&quot;: &quot;A String&quot;, # Optional. Output only. The state of the disk.
        &quot;source&quot;: &quot;A String&quot;, # Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
        &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the disk.
      },
    ],
    &quot;guestAccelerator&quot;: [ # A list of guest accelerator cards&#x27; type and count to use for instances created from these properties.
      { # A specification of the type and number of accelerator cards attached to the instance.
        &quot;acceleratorCount&quot;: 42, # Optional. The number of the guest accelerator cards exposed to this instance.
        &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. Full or partial URL of the accelerator type resource to attach to this instance.
      },
    ],
    &quot;keyRevocationActionType&quot;: &quot;A String&quot;, # KeyRevocationActionType of the instance. Supported options are &quot;STOP&quot; and &quot;NONE&quot;. The default value is &quot;NONE&quot; if it is not specified.
    &quot;labels&quot;: { # Labels to apply to instances that are created from these properties.
      &quot;a_key&quot;: &quot;A String&quot;,
    },
    &quot;machineType&quot;: &quot;A String&quot;, # The machine type to use for instances that are created from these properties.
    &quot;metadata&quot;: { # A metadata key/value entry. # The metadata key/value pairs to assign to instances that are created from these properties. These pairs can consist of custom metadata or predefined keys. See https://cloud.google.com/compute/docs/metadata/overview for more information.
      &quot;items&quot;: [ # Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
        { # A key/value pair to be used for storing metadata.
          &quot;key&quot;: &quot;A String&quot;, # Optional. Key for the metadata entry.
          &quot;value&quot;: &quot;A String&quot;, # Optional. Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
        },
      ],
    },
    &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Minimum cpu/platform to be used by instances. The instance may be scheduled on the specified or newer cpu/platform. Applicable values are the friendly names of CPU platforms, such as `minCpuPlatform: Intel Haswell` or `minCpuPlatform: Intel Sandy Bridge`. For more information, read https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
    &quot;networkInterface&quot;: [ # An array of network access configurations for this interface.
      { # A network interface resource attached to an instance. s
        &quot;accessConfigs&quot;: [ # Optional. An array of configurations for this interface. Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
          { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
            &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
            &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
            &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
            &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
            &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
            &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
            &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
            &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
          },
        ],
        &quot;aliasIpRanges&quot;: [ # Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
          { # An alias IP range attached to an instance&#x27;s network interface.
            &quot;ipCidrRange&quot;: &quot;A String&quot;, # Optional. The IP alias ranges to allocate for this interface.
            &quot;subnetworkRangeName&quot;: &quot;A String&quot;, # Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
          },
        ],
        &quot;internalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the primary internal IPv6 range.
        &quot;ipv6AccessConfigs&quot;: [ # Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
          { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
            &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
            &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
            &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
            &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
            &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
            &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
            &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
            &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
          },
        ],
        &quot;ipv6AccessType&quot;: &quot;A String&quot;, # Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
        &quot;ipv6Address&quot;: &quot;A String&quot;, # Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance&#x27;s zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance&#x27;s subnetwork.
        &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the network interface, which is generated by the server.
        &quot;network&quot;: &quot;A String&quot;, # Optional. URL of the VPC network resource for this instance.
        &quot;networkAttachment&quot;: &quot;A String&quot;, # Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
        &quot;networkIP&quot;: &quot;A String&quot;, # Optional. An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
        &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
        &quot;queueCount&quot;: 42, # Optional. The networking queue count that&#x27;s specified by users for the network interface. Both Rx and Tx queues will be set to this number. It&#x27;ll be empty if not specified by the users.
        &quot;stackType&quot;: &quot;A String&quot;, # The stack type for this network interface.
        &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The URL of the Subnetwork resource for this instance.
      },
    ],
    &quot;scheduling&quot;: { # Sets the scheduling options for an Instance. # Specifies the scheduling options for the instances that are created from these properties.
      &quot;automaticRestart&quot;: True or False, # Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
      &quot;instanceTerminationAction&quot;: &quot;A String&quot;, # Optional. Specifies the termination action for the instance.
      &quot;localSsdRecoveryTimeout&quot;: { # A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like &quot;day&quot; or &quot;month&quot;. Range is approximately 10,000 years. # Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
        &quot;nanos&quot;: 42, # Optional. Span of time that&#x27;s a fraction of a second at nanosecond resolution.
        &quot;seconds&quot;: &quot;A String&quot;, # Optional. Span of time at a resolution of a second.
      },
      &quot;minNodeCpus&quot;: 42, # Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
      &quot;nodeAffinities&quot;: [ # Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
        { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
          &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of Node resource.
          &quot;operator&quot;: &quot;A String&quot;, # Optional. Defines the operation of node selection.
          &quot;values&quot;: [ # Optional. Corresponds to the label values of Node resource.
            &quot;A String&quot;,
          ],
        },
      ],
      &quot;onHostMaintenance&quot;: &quot;A String&quot;, # Optional. Defines the maintenance behavior for this instance.
      &quot;preemptible&quot;: True or False, # Optional. Defines whether the instance is preemptible.
      &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Specifies the provisioning model of the instance.
    },
    &quot;serviceAccount&quot;: [ # A list of service accounts with specified scopes. Access tokens for these service accounts are available to the instances that are created from these properties. Use metadata queries to obtain the access tokens for these instances.
      { # A service account.
        &quot;email&quot;: &quot;A String&quot;, # Optional. Email address of the service account.
        &quot;scopes&quot;: [ # Optional. The list of scopes to be made available for this service account.
          &quot;A String&quot;,
        ],
      },
    ],
    &quot;sourceInstance&quot;: &quot;A String&quot;, # The source instance used to create this backup. This can be a partial or full URL to the resource. For example, the following are valid values: -https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/instance -projects/project/zones/zone/instances/instance
    &quot;tags&quot;: { # A set of instance tags. # A list of tags to apply to the instances that are created from these properties. The tags identify valid sources or targets for network firewalls. The setTags method can modify this list of tags. Each tag within the list must comply with RFC1035 (https://www.ietf.org/rfc/rfc1035.txt).
      &quot;items&quot;: [ # Optional. An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
        &quot;A String&quot;,
      ],
    },
  },
  &quot;consistencyTime&quot;: &quot;A String&quot;, # Output only. The point in time when this backup was captured from the source.
  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was created.
  &quot;description&quot;: &quot;A String&quot;, # Output only. The description of the Backup instance (2048 characters or less).
  &quot;diskBackupProperties&quot;: { # DiskBackupProperties represents the properties of a Disk backup. # Output only. Disk specific backup properties.
    &quot;accessMode&quot;: &quot;A String&quot;, # The access mode of the source disk.
    &quot;architecture&quot;: &quot;A String&quot;, # The architecture of the source disk. Valid values are ARM64 or X86_64.
    &quot;description&quot;: &quot;A String&quot;, # A description of the source disk.
    &quot;enableConfidentialCompute&quot;: True or False, # Indicates whether the source disk is using confidential compute mode.
    &quot;guestOsFeature&quot;: [ # A list of guest OS features that are applicable to this backup.
      { # Feature type of the Guest OS.
        &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
      },
    ],
    &quot;labels&quot;: { # The labels of the source disk.
      &quot;a_key&quot;: &quot;A String&quot;,
    },
    &quot;licenses&quot;: [ # A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image.
      &quot;A String&quot;,
    ],
    &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # The physical block size of the source disk.
    &quot;provisionedIops&quot;: &quot;A String&quot;, # The number of IOPS provisioned for the source disk.
    &quot;provisionedThroughput&quot;: &quot;A String&quot;, # The number of throughput provisioned for the source disk.
    &quot;region&quot;: &quot;A String&quot;, # Region and zone are mutually exclusive fields. The URL of the region of the source disk.
    &quot;replicaZones&quot;: [ # The URL of the Zones where the source disk should be replicated.
      &quot;A String&quot;,
    ],
    &quot;sizeGb&quot;: &quot;A String&quot;, # Size(in GB) of the source disk.
    &quot;sourceDisk&quot;: &quot;A String&quot;, # The source disk used to create this backup.
    &quot;storagePool&quot;: &quot;A String&quot;, # The storage pool of the source disk.
    &quot;type&quot;: &quot;A String&quot;, # The URL of the type of the disk.
    &quot;zone&quot;: &quot;A String&quot;, # The URL of the Zone where the source disk.
  },
  &quot;enforcedRetentionEndTime&quot;: &quot;A String&quot;, # Optional. The backup can not be deleted before this time.
  &quot;etag&quot;: &quot;A String&quot;, # Optional. Server specified ETag to prevent updates from overwriting each other.
  &quot;expireTime&quot;: &quot;A String&quot;, # Optional. When this backup is automatically expired.
  &quot;gcpBackupPlanInfo&quot;: { # GCPBackupPlanInfo captures the plan configuration details of Google Cloud resources at the time of backup. # Output only. Configuration for a Google Cloud resource.
    &quot;backupPlan&quot;: &quot;A String&quot;, # Resource name of backup plan by which workload is protected at the time of the backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}
    &quot;backupPlanRevisionId&quot;: &quot;A String&quot;, # The user friendly id of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup.
    &quot;backupPlanRevisionName&quot;: &quot;A String&quot;, # Resource name of the backup plan revision which triggered this backup in case of scheduled backup or used for on demand backup. Format: projects/{project}/locations/{location}/backupPlans/{backupPlanId}/revisions/{revisionId}
    &quot;backupPlanRuleId&quot;: &quot;A String&quot;, # The rule id of the backup plan which triggered this backup in case of scheduled backup or used for
  },
  &quot;gcpResource&quot;: { # Minimum details to identify a Google Cloud resource for a backup. # Output only. Unique identifier of the GCP resource that is being backed up.
    &quot;gcpResourcename&quot;: &quot;A String&quot;, # Name of the Google Cloud resource.
    &quot;location&quot;: &quot;A String&quot;, # Location of the resource: //&quot;global&quot;/&quot;unspecified&quot;.
    &quot;type&quot;: &quot;A String&quot;, # Type of the resource. Use the Unified Resource Type, eg. compute.googleapis.com/Instance.
  },
  &quot;labels&quot;: { # Optional. Resource labels to represent user provided metadata. No labels currently defined.
    &quot;a_key&quot;: &quot;A String&quot;,
  },
  &quot;name&quot;: &quot;A String&quot;, # Output only. Identifier. Name of the backup to create. It must have the format`&quot;projects//locations//backupVaults//dataSources/{datasource}/backups/{backup}&quot;`. `{backup}` cannot be changed after creation. It must be between 3-63 characters long and must be unique within the datasource.
  &quot;resourceSizeBytes&quot;: &quot;A String&quot;, # Output only. source resource size in bytes at the time of the backup.
  &quot;satisfiesPzi&quot;: True or False, # Optional. Output only. Reserved for future use.
  &quot;satisfiesPzs&quot;: True or False, # Optional. Output only. Reserved for future use.
  &quot;serviceLocks&quot;: [ # Output only. The list of BackupLocks taken by the service to prevent the deletion of the backup.
    { # BackupLock represents a single lock on a Backup resource. An unexpired lock on a Backup prevents the Backup from being deleted.
      &quot;backupApplianceLockInfo&quot;: { # BackupApplianceLockInfo contains metadata about the backupappliance that created the lock. # If the client is a backup and recovery appliance, this contains metadata about why the lock exists.
        &quot;backupApplianceId&quot;: &quot;A String&quot;, # Required. The ID of the backup/recovery appliance that created this lock.
        &quot;backupApplianceName&quot;: &quot;A String&quot;, # Required. The name of the backup/recovery appliance that created this lock.
        &quot;backupImage&quot;: &quot;A String&quot;, # The image name that depends on this Backup.
        &quot;jobName&quot;: &quot;A String&quot;, # The job name on the backup/recovery appliance that created this lock.
        &quot;lockReason&quot;: &quot;A String&quot;, # Required. The reason for the lock: e.g. MOUNT/RESTORE/BACKUP/etc. The value of this string is only meaningful to the client and it is not interpreted by the BackupVault service.
        &quot;slaId&quot;: &quot;A String&quot;, # The SLA on the backup/recovery appliance that owns the lock.
      },
      &quot;lockUntilTime&quot;: &quot;A String&quot;, # Required. The time after which this lock is not considered valid and will no longer protect the Backup from deletion.
      &quot;serviceLockInfo&quot;: { # ServiceLockInfo represents the details of a lock taken by the service on a Backup resource. # Output only. Contains metadata about the lock exist for Google Cloud native backups.
        &quot;operation&quot;: &quot;A String&quot;, # Output only. The name of the operation that created this lock. The lock will automatically be released when the operation completes.
      },
    },
  ],
  &quot;state&quot;: &quot;A String&quot;, # Output only. The Backup resource instance state.
  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time when the instance was updated.
}

  requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
  updateMask: string, Required. Field mask is used to specify the fields to be overwritten in the Backup resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then the request will fail.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
      },
    ],
    &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  },
  &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
  &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
}</pre>
</div>

<div class="method">
    <code class="details" id="restore">restore(name, body=None, x__xgafv=None)</code>
  <pre>Restore from a Backup

Args:
  name: string, Required. The resource name of the Backup instance, in the format &#x27;projects/*/locations/*/backupVaults/*/dataSources/*/backups/&#x27;. (required)
  body: object, The request body.
    The object takes the form of:

{ # Request message for restoring from a Backup.
  &quot;computeInstanceRestoreProperties&quot;: { # ComputeInstanceRestoreProperties represents Compute Engine instance properties to be overridden during restore. # Compute Engine instance properties to be overridden during restore.
    &quot;advancedMachineFeatures&quot;: { # Specifies options for controlling advanced machine features. # Optional. Controls for advanced machine-related behavior features.
      &quot;enableNestedVirtualization&quot;: True or False, # Optional. Whether to enable nested virtualization or not (default is false).
      &quot;enableUefiNetworking&quot;: True or False, # Optional. Whether to enable UEFI networking for instance creation.
      &quot;threadsPerCore&quot;: 42, # Optional. The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed.
      &quot;visibleCoreCount&quot;: 42, # Optional. The number of physical cores to expose to an instance. Multiply by the number of threads per core to compute the total number of virtual CPUs to expose to the instance. If unset, the number of cores is inferred from the instance&#x27;s nominal CPU count and the underlying platform&#x27;s SMT width.
    },
    &quot;canIpForward&quot;: True or False, # Optional. Allows this instance to send and receive packets with non-matching destination or source IPs.
    &quot;confidentialInstanceConfig&quot;: { # A set of Confidential Instance options. # Optional. Controls Confidential compute options on the instance
      &quot;enableConfidentialCompute&quot;: True or False, # Optional. Defines whether the instance should have confidential compute enabled.
    },
    &quot;deletionProtection&quot;: True or False, # Optional. Whether the resource should be protected against deletion.
    &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource. Provide this property when you create the resource.
    &quot;disks&quot;: [ # Optional. Array of disks associated with this instance. Persistent disks must be created before you can assign them. Source regional persistent disks will be restored with default replica zones if not specified.
      { # An instance-attached disk resource.
        &quot;autoDelete&quot;: True or False, # Optional. Specifies whether the disk will be auto-deleted when the instance is deleted (but not when the disk is detached from the instance).
        &quot;boot&quot;: True or False, # Optional. Indicates that this is a boot disk. The virtual machine will use the first partition of the disk for its root filesystem.
        &quot;deviceName&quot;: &quot;A String&quot;, # Optional. This is used as an identifier for the disks. This is the unique name has to provided to modify disk parameters like disk_name and replica_zones (in case of RePDs)
        &quot;diskEncryptionKey&quot;: { # A customer-supplied encryption key. # Optional. Encrypts or decrypts a disk using a customer-supplied encryption key.
          &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The name of the encryption key that is stored in Google Cloud KMS.
          &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
          &quot;rawKey&quot;: &quot;A String&quot;, # Optional. Specifies a 256-bit customer-supplied encryption key.
          &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
        },
        &quot;diskInterface&quot;: &quot;A String&quot;, # Optional. Specifies the disk interface to use for attaching this disk.
        &quot;diskSizeGb&quot;: &quot;A String&quot;, # Optional. The size of the disk in GB.
        &quot;diskType&quot;: &quot;A String&quot;, # Optional. Output only. The URI of the disk type resource. For example: projects/project/zones/zone/diskTypes/pd-standard or pd-ssd
        &quot;diskTypeDeprecated&quot;: &quot;A String&quot;, # Specifies the type of the disk.
        &quot;guestOsFeature&quot;: [ # Optional. A list of features to enable on the guest operating system. Applicable only for bootable images.
          { # Feature type of the Guest OS.
            &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
          },
        ],
        &quot;index&quot;: &quot;A String&quot;, # Optional. A zero-based index to this disk, where 0 is reserved for the boot disk.
        &quot;initializeParams&quot;: { # Specifies the parameters to initialize this disk. # Optional. Specifies the parameters to initialize this disk.
          &quot;diskName&quot;: &quot;A String&quot;, # Optional. Specifies the disk name. If not specified, the default is to use the name of the instance.
          &quot;replicaZones&quot;: [ # Optional. URL of the zone where the disk should be created. Required for each regional disk associated with the instance.
            &quot;A String&quot;,
          ],
        },
        &quot;kind&quot;: &quot;A String&quot;, # Optional. Type of the resource.
        &quot;license&quot;: [ # Optional. Any valid publicly visible licenses.
          &quot;A String&quot;,
        ],
        &quot;mode&quot;: &quot;A String&quot;, # Optional. The mode in which to attach this disk.
        &quot;savedState&quot;: &quot;A String&quot;, # Optional. Output only. The state of the disk.
        &quot;source&quot;: &quot;A String&quot;, # Optional. Specifies a valid partial or full URL to an existing Persistent Disk resource.
        &quot;type&quot;: &quot;A String&quot;, # Optional. Specifies the type of the disk.
      },
    ],
    &quot;displayDevice&quot;: { # A set of Display Device options # Optional. Enables display device for the instance.
      &quot;enableDisplay&quot;: True or False, # Optional. Enables display for the Compute Engine VM
    },
    &quot;guestAccelerators&quot;: [ # Optional. A list of the type and count of accelerator cards attached to the instance.
      { # A specification of the type and number of accelerator cards attached to the instance.
        &quot;acceleratorCount&quot;: 42, # Optional. The number of the guest accelerator cards exposed to this instance.
        &quot;acceleratorType&quot;: &quot;A String&quot;, # Optional. Full or partial URL of the accelerator type resource to attach to this instance.
      },
    ],
    &quot;hostname&quot;: &quot;A String&quot;, # Optional. Specifies the hostname of the instance. The specified hostname must be RFC1035 compliant. If hostname is not specified, the default hostname is [INSTANCE_NAME].c.[PROJECT_ID].internal when using the global DNS, and [INSTANCE_NAME].[ZONE].c.[PROJECT_ID].internal when using zonal DNS.
    &quot;instanceEncryptionKey&quot;: { # A customer-supplied encryption key. # Optional. Encrypts suspended data for an instance with a customer-managed encryption key.
      &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The name of the encryption key that is stored in Google Cloud KMS.
      &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
      &quot;rawKey&quot;: &quot;A String&quot;, # Optional. Specifies a 256-bit customer-supplied encryption key.
      &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    },
    &quot;keyRevocationActionType&quot;: &quot;A String&quot;, # Optional. KeyRevocationActionType of the instance.
    &quot;labels&quot;: { # Optional. Labels to apply to this instance.
      &quot;a_key&quot;: &quot;A String&quot;,
    },
    &quot;machineType&quot;: &quot;A String&quot;, # Optional. Full or partial URL of the machine type resource to use for this instance.
    &quot;metadata&quot;: { # A metadata key/value entry. # Optional. This includes custom metadata and predefined keys.
      &quot;items&quot;: [ # Optional. Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
        { # A key/value pair to be used for storing metadata.
          &quot;key&quot;: &quot;A String&quot;, # Optional. Key for the metadata entry.
          &quot;value&quot;: &quot;A String&quot;, # Optional. Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 262144 bytes (256 KiB).
        },
      ],
    },
    &quot;minCpuPlatform&quot;: &quot;A String&quot;, # Optional. Minimum CPU platform to use for this instance.
    &quot;name&quot;: &quot;A String&quot;, # Required. Name of the compute instance.
    &quot;networkInterfaces&quot;: [ # Optional. An array of network configurations for this instance. These specify how interfaces are configured to interact with other network services, such as connecting to the internet. Multiple interfaces are supported per instance. Required to restore in different project or region.
      { # A network interface resource attached to an instance. s
        &quot;accessConfigs&quot;: [ # Optional. An array of configurations for this interface. Currently, only one access config,ONE_TO_ONE_NAT is supported. If there are no accessConfigs specified, then this instance will have no external internet access.
          { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
            &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
            &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
            &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
            &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
            &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
            &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
            &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
            &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
          },
        ],
        &quot;aliasIpRanges&quot;: [ # Optional. An array of alias IP ranges for this network interface. You can only specify this field for network interfaces in VPC networks.
          { # An alias IP range attached to an instance&#x27;s network interface.
            &quot;ipCidrRange&quot;: &quot;A String&quot;, # Optional. The IP alias ranges to allocate for this interface.
            &quot;subnetworkRangeName&quot;: &quot;A String&quot;, # Optional. The name of a subnetwork secondary IP range from which to allocate an IP alias range. If not specified, the primary range of the subnetwork is used.
          },
        ],
        &quot;internalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the primary internal IPv6 range.
        &quot;ipv6AccessConfigs&quot;: [ # Optional. An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access.
          { # An access configuration attached to an instance&#x27;s network interface. Only one access config per instance is supported.
            &quot;externalIpv6&quot;: &quot;A String&quot;, # Optional. The external IPv6 address of this access configuration.
            &quot;externalIpv6PrefixLength&quot;: 42, # Optional. The prefix length of the external IPv6 range.
            &quot;name&quot;: &quot;A String&quot;, # Optional. The name of this access configuration.
            &quot;natIP&quot;: &quot;A String&quot;, # Optional. The external IP address of this access configuration.
            &quot;networkTier&quot;: &quot;A String&quot;, # Optional. This signifies the networking tier used for configuring this access
            &quot;publicPtrDomainName&quot;: &quot;A String&quot;, # Optional. The DNS domain name for the public PTR record.
            &quot;setPublicPtr&quot;: True or False, # Optional. Specifies whether a public DNS &#x27;PTR&#x27; record should be created to map the external IP address of the instance to a DNS domain name.
            &quot;type&quot;: &quot;A String&quot;, # Optional. In accessConfigs (IPv4), the default and only option is ONE_TO_ONE_NAT. In ipv6AccessConfigs, the default and only option is DIRECT_IPV6.
          },
        ],
        &quot;ipv6AccessType&quot;: &quot;A String&quot;, # Optional. [Output Only] One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork.
        &quot;ipv6Address&quot;: &quot;A String&quot;, # Optional. An IPv6 internal network address for this network interface. To use a static internal IP address, it must be unused and in the same region as the instance&#x27;s zone. If not specified, Google Cloud will automatically assign an internal IPv6 address from the instance&#x27;s subnetwork.
        &quot;name&quot;: &quot;A String&quot;, # Output only. [Output Only] The name of the network interface, which is generated by the server.
        &quot;network&quot;: &quot;A String&quot;, # Optional. URL of the VPC network resource for this instance.
        &quot;networkAttachment&quot;: &quot;A String&quot;, # Optional. The URL of the network attachment that this interface should connect to in the following format: projects/{project_number}/regions/{region_name}/networkAttachments/{network_attachment_name}.
        &quot;networkIP&quot;: &quot;A String&quot;, # Optional. An IPv4 internal IP address to assign to the instance for this network interface. If not specified by the user, an unused internal IP is assigned by the system.
        &quot;nicType&quot;: &quot;A String&quot;, # Optional. The type of vNIC to be used on this interface. This may be gVNIC or VirtioNet.
        &quot;queueCount&quot;: 42, # Optional. The networking queue count that&#x27;s specified by users for the network interface. Both Rx and Tx queues will be set to this number. It&#x27;ll be empty if not specified by the users.
        &quot;stackType&quot;: &quot;A String&quot;, # The stack type for this network interface.
        &quot;subnetwork&quot;: &quot;A String&quot;, # Optional. The URL of the Subnetwork resource for this instance.
      },
    ],
    &quot;networkPerformanceConfig&quot;: { # Network performance configuration. # Optional. Configure network performance such as egress bandwidth tier.
      &quot;totalEgressBandwidthTier&quot;: &quot;A String&quot;, # Optional. The tier of the total egress bandwidth.
    },
    &quot;params&quot;: { # Additional instance params. # Input only. Additional params passed with the request, but not persisted as part of resource payload.
      &quot;resourceManagerTags&quot;: { # Optional. Resource manager tags to be bound to the instance.
        &quot;a_key&quot;: &quot;A String&quot;,
      },
    },
    &quot;privateIpv6GoogleAccess&quot;: &quot;A String&quot;, # Optional. The private IPv6 google access type for the VM. If not specified, use INHERIT_FROM_SUBNETWORK as default.
    &quot;reservationAffinity&quot;: { # Specifies the reservations that this instance can consume from. # Optional. Specifies the reservations that this instance can consume from.
      &quot;consumeReservationType&quot;: &quot;A String&quot;, # Optional. Specifies the type of reservation from which this instance can consume
      &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of a reservation resource.
      &quot;values&quot;: [ # Optional. Corresponds to the label values of a reservation resource.
        &quot;A String&quot;,
      ],
    },
    &quot;resourcePolicies&quot;: [ # Optional. Resource policies applied to this instance. By default, no resource policies will be applied.
      &quot;A String&quot;,
    ],
    &quot;scheduling&quot;: { # Sets the scheduling options for an Instance. # Optional. Sets the scheduling options for this instance.
      &quot;automaticRestart&quot;: True or False, # Optional. Specifies whether the instance should be automatically restarted if it is terminated by Compute Engine (not terminated by a user).
      &quot;instanceTerminationAction&quot;: &quot;A String&quot;, # Optional. Specifies the termination action for the instance.
      &quot;localSsdRecoveryTimeout&quot;: { # A SchedulingDuration represents a fixed-length span of time represented as a count of seconds and fractions of seconds at nanosecond resolution. It is independent of any calendar and concepts like &quot;day&quot; or &quot;month&quot;. Range is approximately 10,000 years. # Optional. Specifies the maximum amount of time a Local Ssd Vm should wait while recovery of the Local Ssd state is attempted. Its value should be in between 0 and 168 hours with hour granularity and the default value being 1 hour.
        &quot;nanos&quot;: 42, # Optional. Span of time that&#x27;s a fraction of a second at nanosecond resolution.
        &quot;seconds&quot;: &quot;A String&quot;, # Optional. Span of time at a resolution of a second.
      },
      &quot;minNodeCpus&quot;: 42, # Optional. The minimum number of virtual CPUs this instance will consume when running on a sole-tenant node.
      &quot;nodeAffinities&quot;: [ # Optional. A set of node affinity and anti-affinity configurations. Overrides reservationAffinity.
        { # Node Affinity: the configuration of desired nodes onto which this Instance could be scheduled.
          &quot;key&quot;: &quot;A String&quot;, # Optional. Corresponds to the label key of Node resource.
          &quot;operator&quot;: &quot;A String&quot;, # Optional. Defines the operation of node selection.
          &quot;values&quot;: [ # Optional. Corresponds to the label values of Node resource.
            &quot;A String&quot;,
          ],
        },
      ],
      &quot;onHostMaintenance&quot;: &quot;A String&quot;, # Optional. Defines the maintenance behavior for this instance.
      &quot;preemptible&quot;: True or False, # Optional. Defines whether the instance is preemptible.
      &quot;provisioningModel&quot;: &quot;A String&quot;, # Optional. Specifies the provisioning model of the instance.
    },
    &quot;serviceAccounts&quot;: [ # Optional. A list of service accounts, with their specified scopes, authorized for this instance. Only one service account per VM instance is supported.
      { # A service account.
        &quot;email&quot;: &quot;A String&quot;, # Optional. Email address of the service account.
        &quot;scopes&quot;: [ # Optional. The list of scopes to be made available for this service account.
          &quot;A String&quot;,
        ],
      },
    ],
    &quot;tags&quot;: { # A set of instance tags. # Optional. Tags to apply to this instance. Tags are used to identify valid sources or targets for network firewalls and are specified by the client during instance creation.
      &quot;items&quot;: [ # Optional. An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
        &quot;A String&quot;,
      ],
    },
  },
  &quot;computeInstanceTargetEnvironment&quot;: { # ComputeInstanceTargetEnvironment represents Compute Engine target environment to be used during restore. # Compute Engine target environment to be used during restore.
    &quot;project&quot;: &quot;A String&quot;, # Required. Target project for the Compute Engine instance.
    &quot;zone&quot;: &quot;A String&quot;, # Required. The zone of the Compute Engine instance.
  },
  &quot;diskRestoreProperties&quot;: { # DiskRestoreProperties represents the properties of a Disk restore. # Disk properties to be overridden during restore.
    &quot;accessMode&quot;: &quot;A String&quot;, # Optional. The access mode of the disk.
    &quot;architecture&quot;: &quot;A String&quot;, # Optional. The architecture of the source disk. Valid values are ARM64 or X86_64.
    &quot;description&quot;: &quot;A String&quot;, # Optional. An optional description of this resource. Provide this property when you create the resource.
    &quot;diskEncryptionKey&quot;: { # A customer-supplied encryption key. # Optional. Encrypts the disk using a customer-supplied encryption key or a customer-managed encryption key.
      &quot;kmsKeyName&quot;: &quot;A String&quot;, # Optional. The name of the encryption key that is stored in Google Cloud KMS.
      &quot;kmsKeyServiceAccount&quot;: &quot;A String&quot;, # Optional. The service account being used for the encryption request for the given KMS key. If absent, the Compute Engine default service account is used.
      &quot;rawKey&quot;: &quot;A String&quot;, # Optional. Specifies a 256-bit customer-supplied encryption key.
      &quot;rsaEncryptedKey&quot;: &quot;A String&quot;, # Optional. RSA-wrapped 2048-bit customer-supplied encryption key to either encrypt or decrypt this resource.
    },
    &quot;enableConfidentialCompute&quot;: True or False, # Optional. Indicates whether this disk is using confidential compute mode. Encryption with a Cloud KMS key is required to enable this option.
    &quot;guestOsFeature&quot;: [ # Optional. A list of features to enable in the guest operating system. This is applicable only for bootable images.
      { # Feature type of the Guest OS.
        &quot;type&quot;: &quot;A String&quot;, # The ID of a supported feature.
      },
    ],
    &quot;labels&quot;: { # Optional. Labels to apply to this disk. These can be modified later using setLabels method. Label values can be empty.
      &quot;a_key&quot;: &quot;A String&quot;,
    },
    &quot;licenses&quot;: [ # Optional. A list of publicly available licenses that are applicable to this backup. This is applicable if the original image had licenses attached, e.g. Windows image
      &quot;A String&quot;,
    ],
    &quot;name&quot;: &quot;A String&quot;, # Required. Name of the disk.
    &quot;physicalBlockSizeBytes&quot;: &quot;A String&quot;, # Optional. Physical block size of the persistent disk, in bytes. If not present in a request, a default value is used. Currently, the supported size is 4096.
    &quot;provisionedIops&quot;: &quot;A String&quot;, # Optional. Indicates how many IOPS to provision for the disk. This sets the number of I/O operations per second that the disk can handle.
    &quot;provisionedThroughput&quot;: &quot;A String&quot;, # Optional. Indicates how much throughput to provision for the disk. This sets the number of throughput MB per second that the disk can handle.
    &quot;resourceManagerTags&quot;: { # Optional. Resource manager tags to be bound to the disk.
      &quot;a_key&quot;: &quot;A String&quot;,
    },
    &quot;resourcePolicy&quot;: [ # Optional. Resource policies applied to this disk.
      &quot;A String&quot;,
    ],
    &quot;sizeGb&quot;: &quot;A String&quot;, # Required. The size of the disk in GB.
    &quot;storagePool&quot;: &quot;A String&quot;, # Optional. The storage pool in which the new disk is created. You can provide this as a partial or full URL to the resource.
    &quot;type&quot;: &quot;A String&quot;, # Required. URL of the disk type resource describing which disk type to use to create the disk.
  },
  &quot;diskTargetEnvironment&quot;: { # DiskTargetEnvironment represents the target environment for the disk. # Disk target environment to be used during restore.
    &quot;project&quot;: &quot;A String&quot;, # Required. Target project for the disk.
    &quot;zone&quot;: &quot;A String&quot;, # Required. Target zone for the disk.
  },
  &quot;regionDiskTargetEnvironment&quot;: { # RegionDiskTargetEnvironment represents the target environment for the disk. # Region disk target environment to be used during restore.
    &quot;project&quot;: &quot;A String&quot;, # Required. Target project for the disk.
    &quot;region&quot;: &quot;A String&quot;, # Required. Target region for the disk.
    &quot;replicaZones&quot;: [ # Required. Target URLs of the replica zones for the disk.
      &quot;A String&quot;,
    ],
  },
  &quot;requestId&quot;: &quot;A String&quot;, # Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # This resource represents a long-running operation that is the result of a network API call.
  &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
  &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
    &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
    &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
      {
        &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
      },
    ],
    &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
  },
  &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
  &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
  &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
    &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
  },
}</pre>
</div>

</body></html>